package com.jsu.springboot_crop.service;

import com.github.pagehelper.PageInfo;
import com.jsu.springboot_crop.entity.Question;

import java.util.List;

public interface QuestionService {
    //分页条件查询问答
    PageInfo<Question> selectByKeys(String keys, Integer pageNum);
    //根据id查询问答
    Question selectById(Integer id);
    //增加问答
    void insert(Question record);
    //查询个人回答
    List<Question> selectByQuestion(String type);
    //根据id修改问答
    void updateById(Question question);
    //     删除问答
    void delete(Integer id);




}
